package ar.org.cfired.creditos.gui.action;

import org.jbpm.api.ExecutionService;
import org.jbpm.api.Configuration;
import org.jbpm.api.Execution;
import org.jbpm.api.ProcessInstance;
public class BuscoInstance {
	public static void main (String args[]) {
	/*	ExecutionService es = new Configuration().buildProcessEngine().getExecutionService();
		Execution e = es.findExecutionById("Creditos.550.553");
		Execution pi = es.findProcessInstanceById("Creditos.550.553");
		
		System.out.println(e.getName());
		*/
		String id = "Creditos.550.553";
		String instance = id.substring(id.indexOf(".")+1);
		if (instance.contains("."))
			instance = instance.substring(0,instance.indexOf("."));
		System.out.println(instance);
	}
}
